package cc.rboot._core.helper;

import javax.servlet.http.HttpServletResponse;

public class ResponseHelper {

    private static final ThreadLocal<HttpServletResponse> THREAD_LOCAL_DATA = new ThreadLocal<>();

    public static void set(HttpServletResponse response) {
        THREAD_LOCAL_DATA.set(response);
    }

    public static HttpServletResponse get() {
        return THREAD_LOCAL_DATA.get();
    }

    public static void remove() {
        THREAD_LOCAL_DATA.remove();
    }
}
